package com.shop.bank;

import com.shop.bank.pojo.Account;
import com.shop.bank.service.AccountService;
import com.shop.user.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;

public class text {

    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationconfig.xml");
        AccountService bean = context.getBean(AccountService.class);

        Map map=new HashMap();
        map.put("cardNo","1");
        map.put("money",500);
        map.put("zzcardNo","2");
        System.out.println(bean.zz(map));

        bean.listall("1").forEach(System.out::println);
    }
}
